package cn.sdormitory.smartdor.dao;

import cn.sdormitory.smartdor.entity.RepairDevice;
import cn.sdormitory.sys.entity.SysUserRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 宿舍报修与字典中设备关联表
 */
@Mapper
public interface RepairDeviceDao extends BaseMapper<RepairDevice> {
    /**
     * 根据报修id 批量添加设备关系
     * @param repairId
     * @param deviceIdList
     */
    void insertRepairAndRepairDevice(@Param("repairId") Long repairId, @Param("deviceIdList") List<Long> deviceIdList);


}
